package com.fifth.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fifth.common.pojo.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    int updateByOrderId(Comment comment);

    /*根据goodsid查询当前商品的评论信息*/



    IPage<Comment> selectCommentByGoodsid(@Param("page") IPage<Comment> page,@Param("ew") QueryWrapper<Comment> queryWrapper);

    IPage<Comment> selectMyCommentByGoodsid(@Param("page") IPage<Comment> page,@Param("ew") QueryWrapper<Comment> queryWrapper);
}
